/*
 * Copyright 2008 Federal Emergency Management Agency
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0 
 *    
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and 
 * limitations under the License. 
 *  
 */
package gov.fema.hazus.bdc.shared.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class WindBuildingDesign implements Serializable {

	@Id Long id;
	private static final long serialVersionUID = -799692596344015638L;
	
	private String designCode;
	private Integer designYear = 0;
	private Integer designWindSpeed = 0;
	private String windSpeedType;
	
	// constants
	public static final String DESIGNCODE = "wind design code";
	public static final String DESIGNYEAR = "wind design year";
	public static final String DESIGNWINDSPEED = "design wind speed";
	public static final String WINDSPEEDTYPE = "wind speed type";
	
	public WindBuildingDesign()
	{
		
	}

	public String getDesignCode() {
		return designCode;
	}



	public void setDesignCode(String designCode) {
		this.designCode = designCode;
	}



	public Integer getDesignWindSpeed() {
		return designWindSpeed;
	}



	public void setDesignWindSpeed(Integer designWindSpeed) {
		this.designWindSpeed = designWindSpeed;
	}



	public Integer getDesignYear() {
		return designYear;
	}



	public void setDesignYear(Integer designYear) {
		this.designYear = designYear;
	}



	public String getWindSpeedType() {
		return windSpeedType;
	}



	public void setWindSpeedType(String windSpeedType) {
		this.windSpeedType = windSpeedType;
	}



	public String toString()
	{
		String str = "";
		str += "[wind-building-design";
		str += "[design-code="+this.designCode+"]";
		str += "[design-year="+this.designYear+"]";
		str += "[design-wind-speed="+this.designWindSpeed+"]";
		str += "[wind-speed-type="+this.windSpeedType+"]";
		str += "]";
		return str;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
